package com.server.questionbank.snframe.mapper.Course.Type;

import com.server.questionbank.snframe.domain.Course.Type.CourseDifficulty;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseDifficultyMapper {
    // 获取课程难度
    @Select("<script>" +
            "SELECT * FROM course_difficulty " +
            "<if test='difficultyId != null and difficultyId > 0'> WHERE difficulty_id = #{difficultyId}</if>" +
            "</script>")
    public List<CourseDifficulty> getCourseDifficulty(@Param("difficultyId") Long difficultyId);
}
